# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=xdg-desktop-portal-kde
pkgver=5.19.4
pkgrel=0
pkgdesc="A backend implementation for xdg-desktop-portal that is using Qt/KDE"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://phabricator.kde.org/source/xdg-desktop-portal-kde"
license="LGPL-2.0-or-later"
depends="xdg-desktop-portal"
makedepends="extra-cmake-modules qt5-qtbase-dev glib-dev kio-dev kwayland-dev
	kdeclarative-dev kirigami2-dev kcoreaddons-dev plasma-framework-dev
	libepoxy-dev pipewire-dev kcoreaddons xdg-desktop-portal cups-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/xdg-desktop-portal-kde-$pkgver.tar.xz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="9185cdbc3d86bd14ed574413fdbed98fb26ca93e5c8f8fd5477848e8b8af442fe863bca42664ea08963c322f7327944048c0c38f3d35a991c1ad57c769e662c5  xdg-desktop-portal-kde-5.19.4.tar.xz"
